/****************************************************************************/
/* NAME:           Hal_PwmManagement_Config.h                               */
/* PURPOSE:        Osmolator management                                     */
/* CREATED_BY:     Vyx                                                      */
/* CREATION_DATE:  09/07/2012                                               */
/************************************** (C) Copyright 2012 AquaLink *********/

#ifndef PWM_MANAGEMENT_CONFIG_DEF
#define PWM_MANAGEMENT_CONFIG_DEF

#ifdef STM32_CONFIG_1 /* STM32_CONFIG_1 */

/* add your config input in this table and respect the same order */
const Pwm_def_t PwmConfigList[] =
{
/*TimerName
  |       Channel ID
  |       |              Frequency
  |       |              |   Duty cycle
  |       |              |   |                                  */
  {TIM_5, CHANNEL_1,    50, 75},   /* OSCILLATOR_1, 50Hz, 7.5% */
  {TIM_5, CHANNEL_2,    50, 75},   /* OSCILLATOR_2, 50Hz, 7.5% */
  {TIM_1, CHANNEL_1,   250, 0},   /* LEDSPWM_1,    250Hz,   0% */
  {TIM_1, CHANNEL_3,   250, 0},   /* LEDSPWM_2,    250Hz,   0% */
  {TIM_1, CHANNEL_4,   250, 0},   /* LEDSPWM_3,    250Hz,   0% */
  {TIM_1, CHANNEL_2, 25000, 0}    /* FANSPWM_1,    25KHz,   0% */
};
#endif /* STM32_CONFIG_1 */

#ifdef STM32_CONFIG_2 /* STM32_CONFIG_2 */

/* add your config input in this table and respect the same order */
const Pwm_def_t PwmConfigList[] =
{
/*TimerName
  |       Channel ID
  |       |          Frequency
  |       |          |   Duty cycle
  |       |          |   |                      */
  {TIM_4, CHANNEL_1, 50, 75},   /* OSCILLATOR_1 */
  {TIM_4, CHANNEL_2, 50, 75},   /* OSCILLATOR_2 */
  {TIM_1, CHANNEL_1, 100, 0},   /* LEDSPWM_1    */
  {TIM_1, CHANNEL_3, 100, 0},   /* LEDSPWM_2    */
  {TIM_1, CHANNEL_4, 100, 0},   /* LEDSPWM_3    */
  {TIM_5, CHANNEL_1, 100, 0},   /* LEDSPWM_4    */
  {TIM_5, CHANNEL_2, 100, 0},   /* LEDSPWM_5    */
  {TIM_5, CHANNEL_3, 100, 0},   /* LEDSPWM_6    */
  {TIM_5, CHANNEL_4, 100, 0}    /* LEDSPWM_7    */
};
#endif /* STM32_CONFIG_2 */

#endif /* PWM_MANAGEMENT_CONFIG_DEF */
